﻿<UserControl x:Class="Silverlight.Navigation.Controls.ApplicationMapPath"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Background="Transparent">
    
    <UserControl.Resources>

        <Style x:Key="HorizontalItemsControlStyle" TargetType="ItemsControl">
            <Setter Property="ItemsPanel">
                <Setter.Value>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal"
							VerticalAlignment="Center"
							HorizontalAlignment="Left"
                                    Margin="5,0,5,0"/>
                    </ItemsPanelTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <DataTemplate x:Key="MenuItemDataTemplate">
                <HyperlinkButton Padding="5,0,5,0" Margin="5,0,5,0" Content="{Binding Title}" Background="Transparent" BorderBrush="Transparent" Click="HyperlinkButton_Click" />            
        </DataTemplate>

    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="Transparent">

        <ItemsControl x:Name="MenuItemsControl"
                      Style="{StaticResource HorizontalItemsControlStyle}"
                      ItemTemplate="{StaticResource MenuItemDataTemplate}" />

    </Grid>
</UserControl>
